package com.study.mongodb.dao;

import org.springframework.data.domain.Sort;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface SimpleMongoDao<T, PK extends Serializable> {
    void save(T entity);

    void update(T entity);

    void saveOrUpdate(T entity);

    void saveOrUpdate(Collection<T> entities);

    void delete(T entity);

    void deleteAll(Collection<T> entities);

    void deleteById(PK id);

    T get(PK id);

    List<T> getAll();
}
